Convert GailCellParent to GtkCellAccessibleParent
authorMatthias Clasen <mclasen@redhat.com>
Sun, 10 Jul 2011 03:56:42 +0000 (23:56 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 10 Jul 2011 03:57:16 +0000 (23:57 -0400)
gtk/a11y/Makefile.am
gtk/a11y/gailcellparent.c [deleted file]
gtk/a11y/gailcellparent.h [deleted file]
gtk/a11y/gtkcellaccessible.c
gtk/a11y/gtkcellaccessibleparent.c [new file with mode: 0644]
gtk/a11y/gtkcellaccessibleparent.h [new file with mode: 0644]
gtk/a11y/gtktextcellaccessible.c
gtk/a11y/gtktextcellaccessible.h
gtk/a11y/gtktreeviewaccessible.c

index 5b16442ee814ee8d39a112a23180b0bf6419ba85..4d31bceedfbdb42ee6c773fe0361b40f5a52b1a1 100644 (file)
@@ -9,7 +9,7 @@ gail_c_sources =                        \
        gtkboxaccessible.c              \
        gtkbuttonaccessible.c           \
        gtkcellaccessible.c             \
-       gailcellparent.c                \
+       gtkcellaccessibleparent.c       \
        gtkcheckmenuitemaccessible.c    \
        gtkchecksubmenuitemaccessible.c \
        gtkcomboboxaccessible.c         \
@@ -61,7 +61,7 @@ gail_private_h_sources =              \
        gtkboxaccessible.h              \
        gtkbuttonaccessible.h           \
        gtkcellaccessible.h             \
-       gailcellparent.h                \
+       gtkcellaccessibleparent.h       \
        gtkcheckmenuitemaccessible.h    \
        gtkchecksubmenuitemaccessible.h \
        gtkcomboboxaccessible.h         \
diff --git a/gtk/a11y/gailcellparent.c b/gtk/a11y/gailcellparent.c
deleted file mode 100644 (file)
index f63eaba..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-/* GAIL - The GNOME Accessibility Implementation Library
-
- * Copyright 2001 Sun Microsystems Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-#include "config.h"
-
-#include <gtk/gtk.h>
-#include "gailcellparent.h"
-
-GType
-gail_cell_parent_get_type (void)
-{
-  static volatile gsize g_define_type_id__volatile = 0;
-
-  if (g_once_init_enter (&g_define_type_id__volatile))
-    {
-      GType g_define_type_id =
-        g_type_register_static_simple (G_TYPE_INTERFACE,
-                                       "GailCellParent",
-                                       sizeof (GailCellParentIface),
-                                       NULL,
-                                       0,
-                                       NULL,
-                                       0);
-
-      g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
-    }
-
-  return g_define_type_id__volatile;
-}
-
-void
-gail_cell_parent_get_cell_extents (GailCellParent    *parent,
-                                   GtkCellAccessible *cell,
-                                   gint              *x,
-                                   gint              *y,
-                                   gint              *width,
-                                   gint              *height,
-                                   AtkCoordType       coord_type)
-{
-  GailCellParentIface *iface;
-
-  g_return_if_fail (GAIL_IS_CELL_PARENT (parent));
-
-  iface = GAIL_CELL_PARENT_GET_IFACE (parent);
-
-  if (iface->get_cell_extents)
-    (iface->get_cell_extents) (parent, cell, x, y, width, height, coord_type);
-}
-
-void
-gail_cell_parent_get_cell_area (GailCellParent    *parent,
-                                GtkCellAccessible *cell,
-                                GdkRectangle      *cell_rect)
-{
-  GailCellParentIface *iface;
-
-  g_return_if_fail (GAIL_IS_CELL_PARENT (parent));
-  g_return_if_fail (cell_rect);
-
-  iface = GAIL_CELL_PARENT_GET_IFACE (parent);
-
-  if (iface->get_cell_area)
-    (iface->get_cell_area) (parent, cell, cell_rect);
-}
-
-gboolean
-gail_cell_parent_grab_focus (GailCellParent    *parent,
-                             GtkCellAccessible *cell)
-{
-  GailCellParentIface *iface;
-
-  g_return_val_if_fail (GAIL_IS_CELL_PARENT (parent), FALSE);
-
-  iface = GAIL_CELL_PARENT_GET_IFACE (parent);
-
-  if (iface->grab_focus)
-    return (iface->grab_focus) (parent, cell);
-  else
-    return FALSE;
-}
diff --git a/gtk/a11y/gailcellparent.h b/gtk/a11y/gailcellparent.h
deleted file mode 100644 (file)
index 37eaedf..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-/* GAIL - The GNOME Accessibility Implementation Library
- *
- * Copyright 2001 Sun Microsystems Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-#ifndef __GAIL_CELL_PARENT_H__
-#define __GAIL_CELL_PARENT_H__
-
-#include <atk/atk.h>
-#include "gtkcellaccessible.h"
-
-G_BEGIN_DECLS
-
-/*
- * The GailCellParent interface should be supported by any object which
- * contains children which are flyweights, i.e. do not have corresponding
- * widgets and the children need help from their parent to provide
- * functionality. One example is GailTreeView where the children GailCell
- * need help from the GailTreeView in order to implement 
- * atk_component_get_extents
- */
-
-#define GAIL_TYPE_CELL_PARENT            (gail_cell_parent_get_type ())
-#define GAIL_IS_CELL_PARENT(obj)         G_TYPE_CHECK_INSTANCE_TYPE ((obj), GAIL_TYPE_CELL_PARENT)
-#define GAIL_CELL_PARENT(obj)            G_TYPE_CHECK_INSTANCE_CAST ((obj), GAIL_TYPE_CELL_PARENT, GailCellParent)
-#define GAIL_CELL_PARENT_GET_IFACE(obj)  (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GAIL_TYPE_CELL_PARENT, GailCellParentIface))
-
-#ifndef _TYPEDEF_GAIL_CELL_PARENT_
-#define _TYPEDEF_GAIL_CELL_PARENT_
-typedef struct _GailCellParent GailCellParent;
-#endif
-typedef struct _GailCellParentIface GailCellParentIface;
-
-struct _GailCellParentIface
-{
-  GTypeInterface parent;
-  void                  ( *get_cell_extents)      (GailCellParent        *parent,
-                                                   GtkCellAccessible     *cell,
-                                                   gint                  *x,
-                                                   gint                  *y,
-                                                   gint                  *width,
-                                                   gint                  *height,
-                                                   AtkCoordType          coord_type);
-  void                  ( *get_cell_area)         (GailCellParent        *parent,
-                                                   GtkCellAccessible     *cell,
-                                                   GdkRectangle          *cell_rect);
-  gboolean              ( *grab_focus)            (GailCellParent        *parent,
-                                                   GtkCellAccessible     *cell);
-};
-
-GType  gail_cell_parent_get_type               (void);
-
-void   gail_cell_parent_get_cell_extents       (GailCellParent        *parent,
-                                                GtkCellAccessible     *cell,
-                                                gint                  *x,
-                                                gint                  *y,
-                                                gint                  *width,
-                                                gint                  *height,
-                                                AtkCoordType          coord_type
-);
-void  gail_cell_parent_get_cell_area           (GailCellParent        *parent,
-                                                GtkCellAccessible     *cell,
-                                                GdkRectangle          *cell_rect);
-gboolean gail_cell_parent_grab_focus           (GailCellParent        *parent,
-                                                GtkCellAccessible     *cell);
-
-G_END_DECLS
-
-#endif /* __GAIL_CELL_PARENT_H__ */
index 6d12d6013fdd40c4288c44df6782fabbbd312d8d..a526023c3f164276be515be1fc2ce5b3e2564340 100644 (file)
@@ -22,7 +22,7 @@
 #include <gtk/gtk.h>
 #include "gtkcontainercellaccessible.h"
 #include "gtkcellaccessible.h"
-#include "gailcellparent.h"
+#include "gtkcellaccessibleparent.h"
 
 typedef struct _ActionInfo ActionInfo;
 struct _ActionInfo {
@@ -399,8 +399,9 @@ gtk_cell_accessible_get_extents (AtkComponent *component,
   cell = GTK_CELL_ACCESSIBLE (component);
   parent = gtk_widget_get_accessible (cell->widget);
 
-  gail_cell_parent_get_cell_extents (GAIL_CELL_PARENT (parent),
-                                     cell, x, y, width, height, coord_type);
+  _gtk_cell_accessible_parent_get_cell_extents (GTK_CELL_ACCESSIBLE_PARENT (parent),
+                                                cell,
+                                                x, y, width, height, coord_type);
 }
 
 static gboolean
@@ -412,7 +413,7 @@ gtk_cell_accessible_grab_focus (AtkComponent *component)
   cell = GTK_CELL_ACCESSIBLE (component);
   parent = gtk_widget_get_accessible (cell->widget);
 
-  return gail_cell_parent_grab_focus (GAIL_CELL_PARENT (parent), cell);
+  return _gtk_cell_accessible_parent_grab_focus (GTK_CELL_ACCESSIBLE_PARENT (parent), cell);
 }
 
 static void
diff --git a/gtk/a11y/gtkcellaccessibleparent.c b/gtk/a11y/gtkcellaccessibleparent.c
new file mode 100644 (file)
index 0000000..b63e5af
--- /dev/null
@@ -0,0 +1,97 @@
+/* GAIL - The GNOME Accessibility Implementation Library
+
+ * Copyright 2001 Sun Microsystems Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#include "config.h"
+
+#include <gtk/gtk.h>
+#include "gtkcellaccessibleparent.h"
+
+GType
+_gtk_cell_accessible_parent_get_type (void)
+{
+  static volatile gsize g_define_type_id__volatile = 0;
+
+  if (g_once_init_enter (&g_define_type_id__volatile))
+    {
+      GType g_define_type_id =
+        g_type_register_static_simple (G_TYPE_INTERFACE,
+                                       "GtkCellAccessibleParent",
+                                       sizeof (GtkCellAccessibleParentIface),
+                                       NULL,
+                                       0,
+                                       NULL,
+                                       0);
+
+      g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
+    }
+
+  return g_define_type_id__volatile;
+}
+
+void
+_gtk_cell_accessible_parent_get_cell_extents (GtkCellAccessibleParent *parent,
+                                              GtkCellAccessible       *cell,
+                                              gint                    *x,
+                                              gint                    *y,
+                                              gint                    *width,
+                                              gint                    *height,
+                                              AtkCoordType             coord_type)
+{
+  GtkCellAccessibleParentIface *iface;
+
+  g_return_if_fail (GTK_IS_CELL_ACCESSIBLE_PARENT (parent));
+
+  iface = GTK_CELL_ACCESSIBLE_PARENT_GET_IFACE (parent);
+
+  if (iface->get_cell_extents)
+    (iface->get_cell_extents) (parent, cell, x, y, width, height, coord_type);
+}
+
+void
+_gtk_cell_accessible_parent_get_cell_area (GtkCellAccessibleParent *parent,
+                                           GtkCellAccessible       *cell,
+                                           GdkRectangle            *cell_rect)
+{
+  GtkCellAccessibleParentIface *iface;
+
+  g_return_if_fail (GTK_IS_CELL_ACCESSIBLE_PARENT (parent));
+  g_return_if_fail (cell_rect);
+
+  iface = GTK_CELL_ACCESSIBLE_PARENT_GET_IFACE (parent);
+
+  if (iface->get_cell_area)
+    (iface->get_cell_area) (parent, cell, cell_rect);
+}
+
+gboolean
+_gtk_cell_accessible_parent_grab_focus (GtkCellAccessibleParent *parent,
+                                        GtkCellAccessible       *cell)
+{
+  GtkCellAccessibleParentIface *iface;
+
+  g_return_val_if_fail (GTK_IS_CELL_ACCESSIBLE_PARENT (parent), FALSE);
+
+  iface = GTK_CELL_ACCESSIBLE_PARENT_GET_IFACE (parent);
+
+  if (iface->grab_focus)
+    return (iface->grab_focus) (parent, cell);
+  else
+    return FALSE;
+}
diff --git a/gtk/a11y/gtkcellaccessibleparent.h b/gtk/a11y/gtkcellaccessibleparent.h
new file mode 100644 (file)
index 0000000..7969a8b
--- /dev/null
@@ -0,0 +1,80 @@
+/* GAIL - The GNOME Accessibility Implementation Library
+ *
+ * Copyright 2001 Sun Microsystems Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __GTK_CELL_ACCESSIBLE_PARENT_H__
+#define __GTK_CELL_ACCESSIBLE_PARENT_H__
+
+#include <atk/atk.h>
+#include "gtkcellaccessible.h"
+
+G_BEGIN_DECLS
+
+/*
+ * The GtkCellAccessibleParent interface should be supported by any object
+ * which contains children which are flyweights, i.e. do not have corresponding
+ * widgets and the children need help from their parent to provide
+ * functionality. One example is GtkTreeViewAccessible where the children
+ * GtkCellAccessible need help from the GtkTreeViewAccessible in order to
+ * implement atk_component_get_extents().
+ */
+
+#define GTK_TYPE_CELL_ACCESSIBLE_PARENT            (_gtk_cell_accessible_parent_get_type ())
+#define GTK_IS_CELL_ACCESSIBLE_PARENT(obj)         G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_ACCESSIBLE_PARENT)
+#define GTK_CELL_ACCESSIBLE_PARENT(obj)            G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_ACCESSIBLE_PARENT, GtkCellAccessibleParent)
+#define GTK_CELL_ACCESSIBLE_PARENT_GET_IFACE(obj)  (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_CELL_ACCESSIBLE_PARENT, GtkCellAccessibleParentIface))
+
+typedef struct _GtkCellAccessibleParent GtkCellAccessibleParent;
+typedef struct _GtkCellAccessibleParentIface GtkCellAccessibleParentIface;
+
+struct _GtkCellAccessibleParentIface
+{
+  GTypeInterface parent;
+  void     ( *get_cell_extents) (GtkCellAccessibleParent *parent,
+                                 GtkCellAccessible       *cell,
+                                 gint                    *x,
+                                 gint                    *y,
+                                 gint                    *width,
+                                 gint                    *height,
+                                 AtkCoordType             coord_type);
+  void     ( *get_cell_area)    (GtkCellAccessibleParent *parent,
+                                 GtkCellAccessible       *cell,
+                                 GdkRectangle            *cell_rect);
+  gboolean ( *grab_focus)       (GtkCellAccessibleParent *parent,
+                                 GtkCellAccessible       *cell);
+};
+
+GType    _gtk_cell_accessible_parent_get_type         (void);
+
+void     _gtk_cell_accessible_parent_get_cell_extents (GtkCellAccessibleParent *parent,
+                                                       GtkCellAccessible       *cell,
+                                                       gint                    *x,
+                                                       gint                    *y,
+                                                       gint                    *width,
+                                                       gint                    *height,
+                                                       AtkCoordType             coord_type);
+void     _gtk_cell_accessible_parent_get_cell_area    (GtkCellAccessibleParent *parent,
+                                                       GtkCellAccessible       *cell,
+                                                       GdkRectangle            *cell_rect);
+gboolean _gtk_cell_accessible_parent_grab_focus       (GtkCellAccessibleParent *parent,
+                                                       GtkCellAccessible       *cell);
+
+G_END_DECLS
+
+#endif /* __GTK_CELL_ACCESSIBLE_PARENT_H__ */
index 67f88311a9a0910f0de5fbc0ddf0dfecc872075f..01f1456ee4d27ade599fae74c7d77947f1e83863 100644 (file)
@@ -23,7 +23,7 @@
 #include "../gtkpango.h"
 #include "gtktextcellaccessible.h"
 #include "gtkcontainercellaccessible.h"
-#include "gailcellparent.h"
+#include "gtkcellaccessibleparent.h"
 
 static const gchar* gtk_text_cell_accessible_get_name    (AtkObject      *atk_obj);
 
@@ -611,9 +611,10 @@ gtk_text_cell_accessible_get_character_extents (AtkText      *text,
   if (GTK_IS_CONTAINER_CELL_ACCESSIBLE (parent))
     parent = atk_object_get_parent (parent);
   widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (parent));
-  g_return_if_fail (GAIL_IS_CELL_PARENT (parent));
-  gail_cell_parent_get_cell_area (GAIL_CELL_PARENT (parent), GTK_CELL_ACCESSIBLE (text),
-                                  &rendered_rect);
+  g_return_if_fail (GTK_IS_CELL_ACCESSIBLE_PARENT (parent));
+  _gtk_cell_accessible_parent_get_cell_area (GTK_CELL_ACCESSIBLE_PARENT (parent),
+                                             GTK_CELL_ACCESSIBLE (text),
+                                             &rendered_rect);
 
   gtk_cell_renderer_get_preferred_size (GTK_CELL_RENDERER (gtk_renderer),
                                         widget,
@@ -696,9 +697,10 @@ gtk_text_cell_accessible_get_offset_at_point (AtkText      *text,
 
   widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (parent));
 
-  g_return_val_if_fail (GAIL_IS_CELL_PARENT (parent), -1);
-  gail_cell_parent_get_cell_area (GAIL_CELL_PARENT (parent), GTK_CELL_ACCESSIBLE (text),
-                                  &rendered_rect);
+  g_return_val_if_fail (GTK_IS_CELL_ACCESSIBLE_PARENT (parent), -1);
+  _gtk_cell_accessible_parent_get_cell_area (GTK_CELL_ACCESSIBLE_PARENT (parent),
+                                             GTK_CELL_ACCESSIBLE (text),
+                                             &rendered_rect);
 
   gtk_cell_renderer_get_preferred_size (GTK_CELL_RENDERER (gtk_renderer),
                                         widget,
index 536aef8b016eca8d220303f12be014a7625d4b54..fd656d59544d7c44af8c9b1469b33c844d38adeb 100644 (file)
@@ -25,7 +25,7 @@
 
 G_BEGIN_DECLS
 
-#define GTK_TYPE_TEXT_CELL_ACCESSIBLE            (gtk_text_cell_accessible_get_type ())
+#define GTK_TYPE_TEXT_CELL_ACCESSIBLE            (_gtk_text_cell_accessible_get_type ())
 #define GTK_TEXT_CELL_ACCESSIBLE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TEXT_CELL_ACCESSIBLE, GtkTextCellAccessible))
 #define GTK_TEXT_CELL_ACCESSIBLE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TEXT_CELL_ACCESSIBLE, GtkTextCellAccessibleClass))
 #define GTK_IS_TEXT_CELL_ACCESSIBLE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TEXT_CELL_ACCESSIBLE))
index fad9bf9f3db1fca46cfc239a23b1a36f1d17f993..257ade7b3c32a0353ec11f8f1a9628ef7489ef9c 100644 (file)
@@ -30,7 +30,7 @@
 #include "gtkimagecellaccessible.h"
 #include "gtkcontainercellaccessible.h"
 #include "gtktextcellaccessible.h"
-#include "gailcellparent.h"
+#include "gtkcellaccessibleparent.h"
 
 typedef struct _GtkTreeViewAccessibleCellInfo  GtkTreeViewAccessibleCellInfo;
 struct _GtkTreeViewAccessibleCellInfo
@@ -156,16 +156,16 @@ static AtkObject *       get_header_from_column         (GtkTreeViewColumn
 static gboolean          idle_garbage_collect_cell_data (gpointer data);
 
 
-static void atk_table_interface_init        (AtkTableIface       *iface);
-static void atk_selection_interface_init    (AtkSelectionIface   *iface);
-static void atk_component_interface_init    (AtkComponentIface   *iface);
-static void gail_cell_parent_interface_init (GailCellParentIface *iface);
+static void atk_table_interface_init                  (AtkTableIface                *iface);
+static void atk_selection_interface_init              (AtkSelectionIface            *iface);
+static void atk_component_interface_init              (AtkComponentIface            *iface);
+static void gtk_cell_accessible_parent_interface_init (GtkCellAccessibleParentIface *iface);
 
 G_DEFINE_TYPE_WITH_CODE (GtkTreeViewAccessible, _gtk_tree_view_accessible, GTK_TYPE_CONTAINER_ACCESSIBLE,
                          G_IMPLEMENT_INTERFACE (ATK_TYPE_TABLE, atk_table_interface_init)
                          G_IMPLEMENT_INTERFACE (ATK_TYPE_SELECTION, atk_selection_interface_init)
                          G_IMPLEMENT_INTERFACE (ATK_TYPE_COMPONENT, atk_component_interface_init)
-                         G_IMPLEMENT_INTERFACE (GAIL_TYPE_CELL_PARENT, gail_cell_parent_interface_init))
+                         G_IMPLEMENT_INTERFACE (GTK_TYPE_CELL_ACCESSIBLE_PARENT, gtk_cell_accessible_parent_interface_init))
 
 
 static void
@@ -1332,9 +1332,9 @@ static void atk_selection_interface_init (AtkSelectionIface *iface)
 #define EXTRA_EXPANDER_PADDING 4
 
 static void
-gtk_tree_view_accessible_get_cell_area (GailCellParent    *parent,
-                                        GtkCellAccessible *cell,
-                                        GdkRectangle      *cell_rect)
+gtk_tree_view_accessible_get_cell_area (GtkCellAccessibleParent *parent,
+                                        GtkCellAccessible       *cell,
+                                        GdkRectangle            *cell_rect)
 {
   GtkWidget *widget;
   GtkTreeView *tree_view;
@@ -1413,13 +1413,13 @@ gtk_tree_view_accessible_get_cell_area (GailCellParent    *parent,
 }
 
 static void
-gtk_tree_view_accessible_get_cell_extents (GailCellParent    *parent,
-                                           GtkCellAccessible *cell,
-                                           gint              *x,
-                                           gint              *y,
-                                           gint              *width,
-                                           gint              *height,
-                                           AtkCoordType       coord_type)
+gtk_tree_view_accessible_get_cell_extents (GtkCellAccessibleParent *parent,
+                                           GtkCellAccessible       *cell,
+                                           gint                    *x,
+                                           gint                    *y,
+                                           gint                    *width,
+                                           gint                    *height,
+                                           AtkCoordType             coord_type)
 {
   GtkWidget *widget;
   GtkTreeView *tree_view;
@@ -1463,8 +1463,8 @@ gtk_tree_view_accessible_get_cell_extents (GailCellParent    *parent,
 }
 
 static gboolean
-gtk_tree_view_accessible_grab_cell_focus (GailCellParent    *parent,
-                                          GtkCellAccessible *cell)
+gtk_tree_view_accessible_grab_cell_focus (GtkCellAccessibleParent *parent,
+                                          GtkCellAccessible       *cell)
 {
   GtkWidget *widget;
   GtkTreeView *tree_view;
@@ -1532,7 +1532,8 @@ gtk_tree_view_accessible_grab_cell_focus (GailCellParent    *parent,
       return FALSE;
 }
 
-static void gail_cell_parent_interface_init (GailCellParentIface *iface)
+static void
+gtk_cell_accessible_parent_interface_init (GtkCellAccessibleParentIface *iface)
 {
   iface->get_cell_extents = gtk_tree_view_accessible_get_cell_extents;
   iface->get_cell_area = gtk_tree_view_accessible_get_cell_area;